/**
 *	单据通知设置-flowtodo
 *	开发者：雨中磐石
 *	地址：www.rockoa.com
 *	日期：2023-07-19
 */
package com.framework.Module.flow.flowtodo;

import com.framework.Table.Table;
import com.framerock.db.DBConn;
import com.framerock.baselib.Rock;

public class Tableflowtodo extends  Table{

    protected void initTable() {
        this.tablename   = "flowtodo";
        this.tablenamesm = "单据通知设置";

        this.flowsetMap  = Rock.getMap(new String[]{
                "type", "系统",
                "sort", "914",
                "isxt", "2",
        });
        this.addfields("num", "varchar(50)", "", "编号", new String[]{

        });
        this.addfields("name", "varchar(100)", "", "标题@@不写默认模块名称", new String[]{
                "isbt","0",
                "isss","1",
                "iseditlx","1",
        });
        this.addfields("summary", "varchar(500)", "", "通知内容@@主表字段加{}", new String[]{
                "isss","0",
                "fieldstype","textarea",
                "isbt","1"
        });
        this.addfields("wherena", "varchar(100)", "", "触发条件@wheredata,wherelx@不选就是无条件", new String[]{
                "fieldstype","selectdatafalse",
        });
        this.addfields("wherelx", "varchar(50)", "", "触发条件编号", new String[]{
                "islu","0",
                "islb","0"
        });
        this.addfields("acttype", "varchar(100)", "", "触发类型", new String[]{
                "isbt","1",
                "fieldstype","checkboxall",
                "data","turn|提交时,edit|编辑时,delete|删除时,zuofei|作废时,finish|审批完成时,task|定时计划任务,ping|评论时"
        });
        this.addfields("toaid", "tinyint(1)", "0", "通知所属人@@通知", new String[]{

        });
        this.addfields("recename", "varchar(500)", "", "通知给@receid", new String[]{
                "isss","1",
                "fieldstype","changedeptusercheck",
        });
        this.addfields("receid", "varchar(500)", "", "通知给人员ID", new String[]{
                "islu","0",
                "islb","0",
        });
        this.addfields("tofields", "varchar(200)", "", "通知给主表字段@@必须主表字段不可乱写", new String[]{
                "islb","0",
        });

        this.addfields("explain", "varchar(100)", "", "说明", new String[]{
                "isss","0",
                "fieldstype","textarea",
        });
        this.addfields("cid", "int(11)", "0", "对应单位", new String[]{
                "islu","0",
                "islb","1",
        });
        this.addfields("modeid", "int(11)", "0", "模块ID", new String[]{
                "isbt","1",
                "islb","0",
                "attr","readonly"
        });
        this.addfields("status", "tinyint(1)", "1", "状态@0|停用|gray,1|启用|green@启用通知", new String[]{
                "ispx","1",
                "iseditlx","1",
                "fieldstype", "checkbox"
        });

        this.addfields("cid", "KEY", "`cid`", "单位ID");
        this.addfields("modeid", "KEY", "`cid`", "模块ID");

    }
}
